﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using STX.Domain;
namespace STX.Service
{
    public class TabPermissionService : BaseService<TabPermission>
    {
        public override bool Update(TabPermission entity)
        {
            var model = FindModelById(entity.Id);
            if (model == null)
            {
                throw new Exception("找不到此条数据");
            }
            model.Name = entity.Name;
            model.Info = entity.Info;
            model.GroupId = entity.GroupId;
            return true;
        }
    }
}
